
/*
 * (C) Copyright 2013 Aepona Limited. All Rights Reserved.
 *
 * These materials are unpublished, proprietary, confidential source code of Aepona Limited and constitute a
 * TRADE SECRET of Aepona Limited.
 *
 * Aepona Limited retains all title to and intellectual property rights in these materials.
 */

package com.intel.sam.modulePartnerIntegration.client;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;


/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.1.6 in JDK 6
 * Generated source version: 2.1
 * 
 */
@WebServiceClient(name = "AppWSImplService", targetNamespace = "http://server.ws.app.aeopna.com/", wsdlLocation = "http://localhost:8080/AppWS-1.0/Login?wsdl")
public class AppWSImplService
    extends Service
{

    private static final URL APPWSIMPLSERVICE_WSDL_LOCATION;
    private static final Logger LOGGER = Logger.getLogger(com.intel.sam.modulePartnerIntegration.client.AppWSImplService.class.getName());
    private static final String TARGET_NAME_SPACE = "http://server.ws.app.aeopna.com/";
    private static final String APPLICATION_PORT = "AppWSImplPort";

    static {
        URL url = null;
        try {
            URL baseUrl;
            baseUrl = com.intel.sam.modulePartnerIntegration.client.AppWSImplService.class.getResource(".");
            url = new URL(baseUrl, "http://localhost:8080/AppWS-1.0/Login?wsdl");
        } catch (MalformedURLException e) {
            LOGGER.warning("Failed to create URL for the wsdl Location: 'http://localhost:8080/AppWS-1.0/Login?wsdl', retrying as a local file");
            LOGGER.warning(e.getMessage());
        }
        APPWSIMPLSERVICE_WSDL_LOCATION = url;
    }

    public AppWSImplService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public AppWSImplService() {
        super(APPWSIMPLSERVICE_WSDL_LOCATION, new QName( TARGET_NAME_SPACE, "AppWSImplService"));
    }

    /**
     * 
     * @return
     *     returns AppWS
     */
    @WebEndpoint(name = APPLICATION_PORT )
    public AppWS getAppWSImplPort() {
        return super.getPort(new QName( TARGET_NAME_SPACE, APPLICATION_PORT ), AppWS.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns AppWS
     */
    @WebEndpoint(name = APPLICATION_PORT )
    public AppWS getAppWSImplPort(WebServiceFeature... features) {
        return super.getPort(new QName( TARGET_NAME_SPACE, APPLICATION_PORT ), AppWS.class, features);
    }

}
